<?php
    include_once '../../../../controlador/php/conexion/Conexion.php';
    $con = new Conexion();
    
     $oid = $_REQUEST['oid'];

    $listado = "select oid, hcnsolexa,asigfecha,asigfecha2,cast(asigobserv as text)as asigobserv,usu_oid,asigfechar,asighora,asirea 
                from segasigcita 
                where hcnsolexa = '".$oid."'";
    $res = $con->query($listado);
    while
        ($re = mssql_fetch_array($res)){
        $lista[] = array_map(utf8_encode,$re);
    }
    print_r(json_encode($lista));
    
    $con->cerrarConexion();             
?>